package com.car.dal.dao.category;

import com.car.bean.GridObj;
import com.car.bean.OrderObj;
import com.car.bean.PageObj;
import com.car.dal.dao.ibatis.IbatisCommonDao;
import com.car.dal.object.TgCategory;

public class TgCategoryDaoImpl extends IbatisCommonDao<TgCategory, Long> implements TgCategoryDao {

    public GridObj GetList(TgCategory category, PageObj pageObj) {
        OrderObj order = new OrderObj();
        order.setDir("desc");
        order.setSort("id");
        return super.findByPage(category, pageObj, order);
    }

}
